<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/publico/template/templatePadrao.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">
        <h:form>
            <h:inputHidden value="#{curriculoBean.curriculo}" converter="curriculoConversor"/>

            
            <h:panelGrid 
                id="display" 
                columns="2" 
                cellpadding="4" 
                style="margin:0 auto;">  
                <f:facet name="header">
                    <h:outputText value="Deseja realmente Exluir?"/>
                </f:facet>

                <h:outputText value="Nome:" />  
                <h:outputText value="#{curriculoBean.curriculo.nome}" 
                              style="font-weight:bold"/>  

                <p:commandButton 
                    action="#{curriculoBean.excluirCurriculo()}" 
                    ajax="false"
                    value="Sim" />

                <p:commandButton 
                    value="Não" 
                    ajax="false"
                    action="#{curriculoBean.irListarCurriculos()}"/>

            </h:panelGrid> 


        </h:form>

    </ui:define>

</ui:composition>
